#include <stdio.h>
main()
{
    int a[3][4]= {{1,2,3,4},{5,6,7,8},{9,10,11,12}};
    int (*p)[4], row, col;
    p=a;
    printf("Input row = ");
    scanf("%d", &row);
    printf("Input col = ");
    scanf("%d", &col);
    printf("a[%d][%d] = %d\n", row, col, *(*(p+row)+col));
}

